<?php
defined('IN_PHPCMS') or exit('Access Denied');
include admin_tpl('header');
?>
<script type="text/javascript" src="images/js/validator.js"></script>
<body>
<form method="post" onsubmit="return checkForm();">
<table cellpadding="0" cellspacing="1" class="table_form">
<caption>修改公告</caption>
	<tr>
		<th><strong>公告标题：</strong></th>
		<td><input name="announce[title]" type="text" size="89" value="<?=$announ['title']?>" require="true" datatype="require"   msg="标题不能为空"></td>
	</tr>
	<tr>
		<th><strong>起始日期：</strong></th>
		<td><?=form::date('announce[fromdate]', $announ['fromdate'])?></td>
	</tr>
	<tr>
		<th><strong>截止日期：</strong></th>
		<td><?=form::date('announce[todate]', $announ['todate'])?></td>
	</tr>
	<tr>
		<th><strong>公告内容：</strong></th>
		<td><textarea name="announce[content]" id="content">
		<?=$announ['content']?></textarea><?=form::editor("content","introduce",550,400)?></td>
	</tr>
	<tr>
		<th><strong>公告状态：</strong></th>
		<td><input name="announce[passed]" type="radio" value="1" <? if($announ['passed'] == 1) echo checked;?>>&nbsp;通过&nbsp;&nbsp;<input name="announce[passed]" type="radio" value="0" <? if($announ['passed'] == 0) echo checked;?>>&nbsp;待审核</td>
	</tr>
	<tr>
		<td>&nbsp;</td>
		<td><input type="submit" name="submit" value=" 确定 ">&nbsp;<input type="reset" value=" 清除 "></td>
	</tr>
</table>
</form>
</body>
</html>
<script language="javascript">
<!--
$().ready(function() {
	  $('form').checkForm(1);
	});
//-->
</script>